<template>
  <div class="card mb-4 shadow-sm course">
    <img class="img-fluid" v-bind:src="travels.image"></img>
    <h4>{{travels.name}}</h4>
    <div class="card-body">
      <p class="card-text">{{travels.summary}}</p>
      <div class="d-flex justify-content-between align-items-center">
        <div class="btn-group">
          <button type="button" class="btn btn-sm btn-outline-secondary">详情</button>
        </div>
        <div class="text-muted">
          <span class="badge badge-info"><i class="fa fa-yen" aria-hidden="true"></i>&nbsp;{{travels.price}}</span>&nbsp;
          <span class="badge badge-info"><i class="fa fa-user" aria-hidden="true"></i>&nbsp;123</span>&nbsp;
          <span class="badge badge-info">{{COURSE_LEVEL | optionKV(travels.level)}}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "the-travel",
  props:{
    travels:{}
  },
  data:function (){
    return {
      COURSE_LEVEL:COURSE_LEVEL
    }
  },
}
</script>

<style>
.course h4{
  font-size: 1.25rem;
  margin: 15px 0;
}
.course .text-muted .badge{
  font-size: 1rem;
}
</style>